package cn.qingyun.gis.modules.scenes.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

/**
 * @author LHJ
 * @description
 * @date 2024/7/28 17:29
 */
@Data
public class BuildInfo {
    @ApiModelProperty(value = "楼栋")
    private String building;

    @ApiModelProperty(value = "单元")
    private String unit;

    @ApiModelProperty(value = "楼层")
    private String floor;

    @ApiModelProperty(value = "房间")
    private String room;

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
        BuildInfo buildInfo = (BuildInfo) obj;
        return Objects.equals(building,buildInfo.building) && Objects.equals(unit,buildInfo.unit) && Objects.equals(floor,buildInfo.floor) && Objects.equals(room,buildInfo.room);
    }

    @Override
    public int hashCode() {
        return Objects.hash(building,unit,floor,room);
    }
}
